package cn.xd.base.persistence.dos;

import cn.xd.base.domain.entity.Dict;
import cn.xd.core.converter.Converter;
import cn.xd.core.converter.ReferenceMapper;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;
@Mapper(uses = ReferenceMapper.class)
public interface DictConverter extends Converter<Dict, DictDO> {

    DictConverter INSTANCE = Mappers.getMapper(DictConverter.class);

    List<Dict> fromData(List<DictDO> dictDOS);
}
